<?php

namespace app\admin\controller;

use think\App;
use think\Request;
use think\facade\Session;
use app\admin\services\LogonlogService;

class Logonlog extends Authent
{
    public function __construct(Request $request = null, App $app = null)
    {
        parent::__construct($request, $app);
        $this->LogonlogService = new LogonlogService();
        global $authstate;
        if(isset($authstate['status']) && $authstate['status'] !=0 ){
            echo json_encode($authstate); die;
        }
    }



    /**
     * @return mixed
     * 首页
     */
    public function index()
    {
        
        return $this->fetch();
    }


    /**
     * @param 登陆日志列表
     */
    public function bicthmomo(){
        $list = $this->LogonlogService->userlist();
        return json($list);
    }

}